From 1c4e60975024463ffa354cbebc51346917ccc2ac Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 4 May 2016 16:05:40 -0400 Subject: [PATCH] css node: Stop extraneous change notification The ::name and ::widget-type properties are entirely independent, no need to notify both when either changes. --- gtk/gtkcssnode.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gtk/gtkcssnode.c b/gtk/gtkcssnode.c index 46a02f0540..917cd5652e 100644 --- a/gtk/gtkcssnode.c +++ b/gtk/gtkcssnode.c @@ -1110,7 +1110,6 @@ gtk_css_node_set_name (GtkCssNode *cssnode, { gtk_css_node_invalidate (cssnode, GTK_CSS_CHANGE_NAME); g_object_notify_by_pspec (G_OBJECT (cssnode), cssnode_properties[PROP_NAME]); - g_object_notify_by_pspec (G_OBJECT (cssnode), cssnode_properties[PROP_WIDGET_TYPE]); } } @@ -1127,7 +1126,6 @@ gtk_css_node_set_widget_type (GtkCssNode *cssnode, if (gtk_css_node_declaration_set_type (&cssnode->decl, widget_type)) { gtk_css_node_invalidate (cssnode, GTK_CSS_CHANGE_NAME); - g_object_notify_by_pspec (G_OBJECT (cssnode), cssnode_properties[PROP_NAME]); g_object_notify_by_pspec (G_OBJECT (cssnode), cssnode_properties[PROP_WIDGET_TYPE]); } } -- 2.30.2